package com.atguigu.boot.Conrtoller;

import com.atguigu.boot.bean.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author anan
 * @create 2021-08-10 16:38
 */
@RestController
public class HelloController {
    @Autowired
    Car car;

    @RequestMapping("/car")
    public Car handleCar(){
        return car;
    }

    @RequestMapping("/hello")
    public String Handle01(){
        return "Hello, Spirng Boot 2";
    }
}
